package com.xique.park.controller.client.web.bean.request;

import lombok.Data;

import javax.validation.constraints.NotBlank;

/**
 * 开关闸请求对象
 *
 * @author: xique
 */
@Data
public class ClientOprGateRequest {

    public interface OpenGate {
    }

    public interface CloseGate {
    }

    @NotBlank(message = "设备序列号不能为空", groups = {OpenGate.class, CloseGate.class})
    private String sn;

    @NotBlank(message = "通道ID不能为空", groups = {OpenGate.class, CloseGate.class})
    private String laneId;

    @NotBlank(message = "原因不能为空", groups = {OpenGate.class})
    private String remark;

}
